Skip to main content

mouseUp

Type

message

Summary

Sent when the user releases the mouse button.

Syntax

mouseUp

Description

Handle the mouseUp message to perform an action when the user releases the mouse button after clicking.

If the mouse has moved outside the control that was originally clicked before the user releases the mouse button, the mouseRelease message is sent instead of mouseUp.

Parameters

NameTypeDescription

pButtonNumber

Number

Specifies which mouse button was pressed:

  • "1": the left button on systems with a multi-button mouse and the mouse button on Mac OS systems with a single-button mouse.
  • "2": the middle button on systems with a three-button mouse.
  • "3": the right button on systems with a multi-button mouse and Control-click on Mac OS systems with a single-button mouse.

Compatibility and Support

OS

mac

windows

linux

ios

android

web

Platforms

desktop

mobile